module.exports = {
  // JWT配置
  JWT_SECRET: process.env.JWT_SECRET || 'your-secret-key',
  JWT_EXPIRES_IN: '24h',
  REDIS_EXPIRY: 12 * 60 * 60,  // 12小时，单位：秒
  
  // WebSocket配置
  WS_HEARTBEAT_INTERVAL: 30000, // 30秒心跳间隔
  
  // 响应状态码
  RESPONSE_CODE: {
    SUCCESS: 200,
    NO_DATA: 201,
    PARAM_ERROR: 400001,
    AUTH_ERROR: 401001,
    TOKEN_INVALID: 401002,
    TOKEN_EXPIRED: 401003,
    TOKEN_ERROR: 401004,
    SERVER_ERROR: 500001
  },
  
  // 用户角色
  USER_ROLES: {
    ADMIN: 'admin',
    TEACHER: 'teacher',
    STUDENT: 'student',
    CUSTOMER_SERVICE: 'customer_service'
  },
  
  // 消息类型
  MESSAGE_TYPES: {
    CHAT: 'chat',
    NOTIFICATION: 'notification',
    SYSTEM: 'system'
  },
  
  // 通知类型
  NOTIFICATION_TYPES: {
    COURSE: '课程通知',
    SYSTEM: '系统通知',
    ACTIVITY: '活动通知'
  }
}; 